import service from '@/utils/request'

// @Tags FdArticleLearn
// @Summary 创建FdArticleLearn
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.FdArticleLearn true "创建FdArticleLearn"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /fdArticleLearn/createFdArticleLearn [post]
export const createFdArticleLearn = (data) => {
  return service({
    url: '/fdArticleLearn/createFdArticleLearn',
    method: 'post',
    data
  })
}

// @Tags FdArticleLearn
// @Summary 删除FdArticleLearn
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.FdArticleLearn true "删除FdArticleLearn"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /fdArticleLearn/deleteFdArticleLearn [delete]
export const deleteFdArticleLearn = (data) => {
  return service({
    url: '/fdArticleLearn/deleteFdArticleLearn',
    method: 'delete',
    data
  })
}

// @Tags FdArticleLearn
// @Summary 删除FdArticleLearn
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body request.IdsReq true "批量删除FdArticleLearn"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /fdArticleLearn/deleteFdArticleLearn [delete]
export const deleteFdArticleLearnByIds = (data) => {
  return service({
    url: '/fdArticleLearn/deleteFdArticleLearnByIds',
    method: 'delete',
    data
  })
}

// @Tags FdArticleLearn
// @Summary 更新FdArticleLearn
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.FdArticleLearn true "更新FdArticleLearn"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"更新成功"}"
// @Router /fdArticleLearn/updateFdArticleLearn [put]
export const updateFdArticleLearn = (data) => {
  return service({
    url: '/fdArticleLearn/updateFdArticleLearn',
    method: 'put',
    data
  })
}

// @Tags FdArticleLearn
// @Summary 用id查询FdArticleLearn
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query model.FdArticleLearn true "用id查询FdArticleLearn"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"查询成功"}"
// @Router /fdArticleLearn/findFdArticleLearn [get]
export const findFdArticleLearn = (params) => {
  return service({
    url: '/fdArticleLearn/findFdArticleLearn',
    method: 'get',
    params
  })
}

// @Tags FdArticleLearn
// @Summary 分页获取FdArticleLearn列表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query request.PageInfo true "分页获取FdArticleLearn列表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /fdArticleLearn/getFdArticleLearnList [get]
export const getFdArticleLearnList = (params) => {
  return service({
    url: '/fdArticleLearn/getFdArticleLearnList',
    method: 'get',
    params
  })
}

// @Tags FdArticleLearn
// @Summary 分页获取FdArticleLearn列表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query request.PageInfo true "分页获取FdArticleLearn列表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /fdArticleLearn/getFdArticleLearnList [get]
export const getBuyArticle = (params) => {
  return service({
    url: '/fdArticleLearn/getBuyArticle',
    method: 'get',
    params
  })
}

export const setBuyArticle = (data) => {
  return service({
    url: '/fdArticleLearn/setBuyArticle',
    method: 'post',
    data
  })
}
